import axios from '@/libs/request/axios'
//获取放款初审待办任务
export const getLoanApproveTaskList = (params) =>{
    return axios.request({
        url:'/case/loanApproveTask/getLoanApproveTaskList',
        data:params,
        method:'post'
    })
}

//获取放款复审待办任务
export const getLoanReviewTaskList = (params) =>{
    return axios.request({
        url:'/case/loanApproveTask/getLoanReviewTaskList',
        data:params,
        method:'post'
    })
}

// 改变锁定状态
export const modifyLock = (data,lockRemark,status) => {
    return axios.request({
        url: '/case/loanApproveTask/modifyLock',
        params: {
            data:data,
            lockRemark:lockRemark,
            status:status,
        },
        method: 'post'
    })
}

// 改变标签
export const modifyLabel = (data,label) => {
    return axios.request({
        url: '/case/loanApproveTask/modifyLabel',
        params: {
            data:data,
            label:label,
        },
        method: 'post'
    })
}

// 标签删除
export const delLabelList = (data) => {
    return axios.request({
        url: '/case/loanApproveTask/delLabelList',
        params: {
            data:data
        },
        method: 'post'
    })
}

// 案件废弃
export const loanDiscard = (data,label) => {
    return axios.request({
        url: '/case/loanApproveTask/loanDiscard',
        params: {
            data:data,
            label:label,
        },
        method: 'post'
    })
}

// 改变置顶状态
export const modifyStick = (data,status) => {
    return axios.request({
        url: '/case/loanApproveTask/modifyTop',
        params: {
            data:data,
            status:status,
        },
        method: 'post'
    })
}

//改派
export const changeTaskHandler = (params) =>{
    return axios.request({
        url: `/case/loanApproveTask/taskHandler`,
        data: params,
        method: 'post'
    })
}

//批量改派
export const changeTaskHandlerList = (params) =>{
    return axios.request({
        url: `/case/loanApproveTask/taskHandlerList`,
        data: params,
        method: 'post'
    })
}

// 获取案件标签列表
export const getLabelList = () => {
    return axios.request({
        url: '/case/loanApproveTask/getLabelList',
        method: 'post'
    })
}

// 获取车辆品牌列表
export const getBrandNameList = () => {
    return axios.request({
        url: '/case/loanApproveTask/getBrandNameList',
        method: 'post'
    })
}

// 获取标签库
export const getConfCaseLabelList = () => {
    return axios.request({
        url: '/case/loanApproveTask/getConfCaseLabelList',
        method: 'post'
    })
}
